# 九九乘法表 for循环实现
for i in range(1, 10):
    for j in range(1, i + 1):
        print(f"{j} * {i} = {j * i} \t", end='')
    print()

print()
# 九九乘法表 while循环实现
i = 1
while i < 10:
    j = 1
    while j <= i:
        print(f"{j} * {i} = {j * i} \t", end='')
        j += 1
    i += 1
    print()